Here's a documented setup - https://github.com/Sakitoshi/retropie-crt-tvout.
The parameters to modify in config.txt are also overly documented in https://www.raspberrypi.org/documentation/configuration/config-txt/video.md.
You can edit the config.txt from your PC, since the file is available on the bootpartition, readable from Windows/macOS.